package com.team5101.mapper;

import com.team5101.dto.TProductDto;
import com.team5101.base.IBaseDao;
import com.team5101.entity.TProduct;

import java.util.List;

public interface TProductMapper extends IBaseDao<TProduct> {
    int deleteByPrimaryKey(Long pid);

    int insert(TProduct record);

    int insertSelective(TProduct record);

    TProduct selectByPrimaryKey(Long pid);

    int updateByPrimaryKeySelective(TProduct record);

    int updateByPrimaryKey(TProduct record);


     List<TProductDto> getAll();

    TProductDto selectOne(Long pid);
}